<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel app\models\search\ClientPublishSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Client Publishes';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="client-publish-index">

    <p>
        <?= Html::a('Create Client Publish', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            'id',
            'client_id',
//            'createdtime:datetime',
            [
                'attribute' => 'createdtime',
                'format' => ['date','php:Y-m-d']
            ],
//            'htmlstring:ntext',
            'imageurl:url',
            // 'title',
            // 'money',
            // 'isactive',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
